package threads.producer.consumer;

public class ProducerConsumerDemo {
    public static void main(String[] args) {
        Store store = new Store();
        new Thread(new Producer(store)).start();
        new Thread(new Consumer(store, "张三")).start();
        new Thread(new Consumer(store, "李四")).start();
        new Thread(new Consumer(store, "王五")).start();
    }
}
